<%@tag import="by.epam.communalservices.utils.Staff"%>
<%@tag import="java.sql.Connection"%>
<%@ attribute name="id" required="true"%>
<%@ attribute name="status" required="true"%>

<%
    Connection con = (Connection) request.getSession().getAttribute("currentConnection");
    Staff staff = new Staff(con);
    Long result = staff.countState((Long) Long.parseLong(getJspContext().getAttribute("id").toString()), getJspContext().getAttribute("status").toString());
    out.print(result);
 %>